package com.ruoyi.warehousemanager.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.warehousemanager.mapper.OutWarehouseMapper;
import com.ruoyi.warehousemanager.domain.OutWarehouse;
import com.ruoyi.warehousemanager.service.IOutWarehouseService;

/**
 * 出库管理Service业务层处理
 * 
 * @author h
 * @date 2023-06-15
 */
@Service
public class OutWarehouseServiceImpl implements IOutWarehouseService 
{
    @Autowired
    private OutWarehouseMapper outWarehouseMapper;

    /**
     * 查询出库管理
     * 
     * @param outId 出库管理主键
     * @return 出库管理
     */
    @Override
    public OutWarehouse selectOutWarehouseByOutId(Long outId)
    {
        return outWarehouseMapper.selectOutWarehouseByOutId(outId);
    }

    /**
     * 查询出库管理列表
     * 
     * @param outWarehouse 出库管理
     * @return 出库管理
     */
    @Override
    public List<OutWarehouse> selectOutWarehouseList(OutWarehouse outWarehouse)
    {
        return outWarehouseMapper.selectOutWarehouseList(outWarehouse);
    }

    /**
     * 新增出库管理
     * 
     * @param outWarehouse 出库管理
     * @return 结果
     */
    @Override
    public int insertOutWarehouse(OutWarehouse outWarehouse)
    {
        return outWarehouseMapper.insertOutWarehouse(outWarehouse);
    }

    /**
     * 修改出库管理
     * 
     * @param outWarehouse 出库管理
     * @return 结果
     */
    @Override
    public int updateOutWarehouse(OutWarehouse outWarehouse)
    {
        return outWarehouseMapper.updateOutWarehouse(outWarehouse);
    }

    /**
     * 批量删除出库管理
     * 
     * @param outIds 需要删除的出库管理主键
     * @return 结果
     */
    @Override
    public int deleteOutWarehouseByOutIds(Long[] outIds)
    {
        return outWarehouseMapper.deleteOutWarehouseByOutIds(outIds);
    }

    /**
     * 删除出库管理信息
     * 
     * @param outId 出库管理主键
     * @return 结果
     */
    @Override
    public int deleteOutWarehouseByOutId(Long outId)
    {
        return outWarehouseMapper.deleteOutWarehouseByOutId(outId);
    }
}
